package com.dlxj.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class StringUtil {

	public static String date2str(Date date, String pattern) {
		SimpleDateFormat sdf = new SimpleDateFormat(pattern);
		return sdf.format(date);
	}
}
